package com.unicom.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.unicom.pojo.Person;

@Controller
public class TestController {
	
	
	@RequestMapping("/person")
	@ResponseBody
	public Object show() {
		Person person = new Person();
		person.setId(1);
		person.setUsername("张三");
		person.setUserpwd("123456");
		
		return person;
	}
	
	@RequestMapping("/show")
	@ResponseBody
	public String show2(){
//		int a = 1/0;
		int[] arr = new int[2];
		System.out.println(arr[2]);
		
		return "show";
	}
	
	
}
